package io.rocketman.codec;


/**
 * @author He Peng
 * @create 2018-05-27 0:41
 * @update 2018-05-27 0:41
 * @updatedesc : 更新说明
 * @see
 */

public interface Codec {

    byte[] encode(Object obj);

    <T> T decode(byte[] bytes , Class<T> cls);
}
